package com.sdut.material.service;

import com.sdut.material.pojo.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sdut.material.pojo.vo.LayUISelectMVO;
import com.sdut.material.util.JSONResult;
import com.sdut.material.util.LayUITableResult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Yu
 * @since 2022-04-20
 */
public interface IRoleService extends IService<Role> {

    List<LayUISelectMVO> selectAllRoles();

    LayUITableResult selectByPage(Long page, Long limit);

    JSONResult insert(Role role, String permissions);

    JSONResult selectRoleAndPermissions(Integer roleId);

    JSONResult updateRole(Role role, String permissions);

    void deleteById(Integer roleId);
}
